package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @RequestMapping 请求映射
 * 请求路径是  类 + 方法名
 */

@Controller
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/sayHello")
    public String hello(){
        System.out.println("hello");
        return "index";
    }

}
